package com.fg.pro.sys.dao;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.fg.pro.model.sys.entity.SysUser;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;

import java.util.List;

/**
 * 用户(SysUser)表数据库访问层
 *
 * @author makejava
 * @since 2025-07-17 10:10:47
 */
@Mapper
public interface SysUserDao extends BaseMapper<SysUser> {

    @Select("select menu_mapping_path from sys_menu where id in (select menu_id from sys_role_menu where role_id = (select role_id from sys_user_role where id = #{userId})) and menu_mapping_path is not null and menu_mapping_path != ''")
    List<String> getMenuStrListById(String id);
     List<SysUser> getList(String userName);
}

